package com.ls.pattern.proxy.staticproxy;


public class UserServiceProxy implements UserService{

    private UserService userService;

    public UserServiceProxy(UserService userService) {
        this.userService = userService;
    }

    @Override
    public void insertUser() {
        System.out.println("插入用户前开启事务");
        userService.insertUser();
        System.out.println("插入用户后提交事务");
    }

}
